package cn.edu.sdjzu.xg.bysj.security;

import java.io.Serializable;



public class Permission implements Comparable<Permission>, Serializable {
	private Integer id;
	private String description;
	private String url;
	private String no;
	//本资源属于的角色
	private Role role;

	public Permission(Integer id, String description, String url, String no, Role role) {
		this.id = id;
		this.description = description;
		this.url = url;
		this.no = no;
		this.role = role;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public String getNo() {
		return no;
	}

	public void setNo(String no) {
		this.no = no;
	}

	public Role getRole() {
		return role;
	}

	public void setRole(Role role) {
		this.role = role;
	}

	@Override
	public int compareTo(Permission o) {
		// TODO Auto-generated method stub
		return this.id - o.id;
	}
}
